package com.iretailer.report.influxdb.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.text.MessageFormat;
import java.time.ZonedDateTime;

/**
 * @Auther: xjw
 * @Date: 2019/1/23 16:00
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Passengerflow {

    private String zoneid;
    private ZonedDateTime time;
    private int countEnter;
    private int countExit;

    private String group;
    public String getGroup() {
        return MessageFormat.format("{0}_{1}", zoneid, time);
    }
}
